home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Development / MosaicSRC / libwww2 / HTMLDTD.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  2.0 KB  |  83 lines

  1. /*                                               The HTML DTD -- software interface in libwww
  2.                               HTML DTD - SOFTWARE INTERFACE
  3.                                              
  4.    SGML purists should excuse the use of the term "DTD" in this file to represent
  5.    DTD-related information which is not exactly a DTD itself.
  6.    
  7.    The C modular structure doesn't work very well here, as the dtd is partly in the .h and
  8.    partly in the .c which are not very independent.  Tant pis.
  9.    
  10.  */
  11. #ifndef HTMLDTD_H
  12. #define HTMLDTD_H
  13.  
  14. #include "HTUtils.h"
  15. #include "SGML.h"
  16.  
  17. /*
  18.  
  19. Element Numbers
  20.  
  21.  */
  22.  
  23. /*
  24.  
  25.    Must Match all tables by element! These include tables in HTMLDTD.c and code in HTML.c
  26.    .
  27.    
  28.  */
  29. typedef enum _HTMLElement {
  30.         HTML_A,         HTML_ADDRESS,
  31.         HTML_B,         HTML_BLOCKQUOTE,        HTML_BODY,
  32.         HTML_CITE,      HTML_CODE,      HTML_COMMENT,
  33.         HTML_DD,        HTML_DFN,       HTML_DIR,
  34.         HTML_DL,        HTML_DLC,       HTML_DT,
  35.         HTML_EM,
  36.         HTML_HEAD,
  37.         HTML_H1,        HTML_H2,        HTML_H3,
  38.         HTML_H4,        HTML_H5,        HTML_H6,        HTML_H7,
  39.         HTML_HTML,
  40.         HTML_I,         HTML_IMG,       HTML_ISINDEX,
  41.         HTML_KBD,
  42.         HTML_LI,        HTML_LINK,      HTML_LISTING,
  43.         HTML_NEXTID,    HTML_MENU,
  44.         HTML_OL,        HTML_P,         HTML_PLAINTEXT, HTML_PRE,
  45.         HTML_SAMP,      HTML_STRONG,
  46.         HTML_TITLE,     HTML_TT,
  47.         HTML_U,         HTML_UL,
  48.         HTML_VAR,       HTML_XMP } HTMLElement;
  49.  
  50. #define HTML_ELEMENTS 45
  51.  
  52. /*
  53.  
  54. Attribute numbers
  55.  
  56.  */
  57.  
  58. /*
  59.  
  60.    Identifier is HTML_<element>_<attribute>. These must match the tables in HTML.c!
  61.    
  62.  */
  63. #define HTML_A_HREF             0
  64. #define HTML_A_NAME             1
  65. #define HTML_A_TITLE            2
  66. #define HTML_A_TYPE             3
  67. #define HTML_A_URN              4
  68. #define HTML_A_ATTRIBUTES       5
  69.  
  70. #define DL_COMPACT 0
  71.  
  72. #define HTML_IMG_SRC            0
  73.  
  74. #define NEXTID_N 0
  75.  
  76. extern CONST SGML_dtd HTML_dtd;
  77.  
  78. #endif /* HTMLDTD_H */
  79.  
  80. /*
  81.  
  82.    End of module definition  */
  83.